package biz.ezcom.design.pattern.state;

/**
 * 环境类 
 */
public class Context {
	private State state;
	private int hour;
	
	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}
	
	public int getHour() {
		return hour;
	}

	public void setHour(int hour) {
		this.hour = hour;
	}

	public void request(){
		state.handle(this);
	}
}
